package murraco.repository;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;

import murraco.model.User;

public interface UserRepository extends JpaRepository<User, String> {

  boolean existsByLoginCode(String username);

  User findByLoginCode(String username);

  @Transactional
  void deleteByLoginCode(String username);

}
